package com.server;

import com.pojo.Admin;

import java.util.List;

public interface AdminService {
    //验证用户登录：用户和密码
    public Admin getLoginAdmin(String name, String password);
    //根据用户名查找用户进行登录判断
    public Admin findAdminByLoginName(String name);

    public List<Admin> getadminList();

    public List<Admin> getAdd(String name, String description);

    public int deleteById(int adminid);

    public int addByID(String name);

    public int getallcount();

    public Admin selectAdminById(int adminid);

    public int updateAdmin(int adminid, String name, String password,int age, String sex, String phone,String rolename);

    public int addadmin(String name,String password,int age, String sex, String phone,String rolename);

    public List<Admin> getsearch(String name);
}
